package net.contrend.material.form;

import java.util.Date;

import net.contrend.util.StringUtils;

import org.apache.struts.action.ActionForm;

/**
 * <p>Copyright @ 2009 www.contrend.net</p>
 * <p>All right reserved. </p>
 * <p>项目名称			： 进销存管理系统 </p>
 * <p>JDK使用版本号		： jdk6.0 </P>
 * <p>描述				： 原料库存单 Form </p>
 * @版本					： 1.0.0 
 * @author				： 谢庚才
 *
 * <p>修改历史 </p>
 * <p>修改时间            修改人员    修改内容 </p>
 * <p>Dec 11, 2009       谢庚才     新建 </p>
 */
public class MaterialStockSheetForm extends ActionForm {

	private static final long serialVersionUID = 1979532673599022197L;
	/** 库存单Id */
	private String mssId;
	/** 采购单Id */
	private String mpsId;
	/** 入库日期 */
	private Date enterDate;
	/** 操作人 */
	private String operator;
	/** 合计金额 */
	private Double totalPrice;
	private Date createDate;
	private String status;
	
	/** 原料采购单 */
	private MaterialPurchaseSheetForm materialPurchaseSheet = new MaterialPurchaseSheetForm();

	public String getMssId() {
		return mssId;
	}

	public void setMssId(String mssId) {
		this.mssId = mssId;
	}

	public String getMpsId() {
		if (StringUtils.isEmpty(this.mpsId) && StringUtils.isNotEmpty(this.materialPurchaseSheet.getMpsId())) {
			this.mpsId = this.materialPurchaseSheet.getMpsId();
		}
		return mpsId;
	}

	public void setMpsId(String mpsId) {
		this.mpsId = mpsId;
	}

	public Date getEnterDate() {
		return enterDate;
	}

	public void setEnterDate(Date enterDate) {
		this.enterDate = enterDate;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public MaterialPurchaseSheetForm getMaterialPurchaseSheet() {
		return materialPurchaseSheet;
	}

	public void setMaterialPurchaseSheet(
			MaterialPurchaseSheetForm materialPurchaseSheet) {
		this.materialPurchaseSheet = materialPurchaseSheet;
	}
}
